import request from '@/utils/request'

// 派单
export function dispatchOrder(data) {
  return request({
      url: '/maintenance/miHelpOrder/dispatchOrder',
      method: 'post',
      data: data,
      port: { ENV_PORT: 8005 },
      ajaxType2: 'reqPost'
  })
}

// 报警ID - 查询工单详情
export function orderDetail(id) {
  return request({
      url: '/maintenance/miHelpOrder/detailByAcceptId',
      method: 'get',
      params: {
        wirnId:id
      },
      port: { ENV_PORT: 8005 },
      ajaxType2: 'reqGet'
  })
}